package com.henu.rescue.mapper;

import com.henu.rescue.entity.Organization;
import com.henu.rescue.entity.Station;
import com.henu.rescue.entity.VO.StationComplainCount;
import com.henu.rescue.entity.VO.StationMapVO;
import com.henu.rescue.entity.VO.StationVO;
import com.henu.rescue.utils.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StaMapper {

    //添加救援服务点
    Integer addSta(Station station);

    //删除救援服务点
    Integer delStaById(Integer staId);

    //更新救援服务点信息
    Integer updateSta(Station station);

    //分页查询
    List<StationVO> selectStaInfoByPage(Page<StationVO> page) ;
    int getCountByPage(Page<StationVO> page);

    List<Station> selectAll();

    List<Station> selectAllLeisure();

    //设置状态为忙碌
    Integer setBusyById(Integer staId);

    String getNameById(Integer stationId);

    Integer getStatusById(Integer stationId);

    Station getStaById(Integer stationId);


    List<StationComplainCount> getStationComplainCount();

    Integer getCount();

    List<Station> selectStaByOrgId(Integer orgId);

    List<StationMapVO> selectStationMap();
}
